@import "./themes.scss";

/**
** 全局样式设置
*/
html {
  font-size: 62.5%;
}

body {
  color: $black-1;
  font-size: 1.4rem;
  line-height: 1.5;
  font-family: "PingFang SC", "San Francisco", "STXihei", "Microsoft Yahei",
    "Heiti SC", "Droid Sans", "Droid Sans Fallback", Sans-serif;
  background-color: $white-0;
  @media screen and (min-width: 1600px) {
    font-size: 1.6rem;
  }
}

a:active,
a:hover {
  text-decoration: none;
  outline: 0;
}

.clear {
  clear: both;
}

p,
a {
  margin: 0;
  padding: 0;
}

h1,
h2 {
  margin: 0;
  padding: 0;
  font-weight: 600;
  line-height: 1.1em;
}

h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  line-height: 1.1em;
  margin-bottom: 20px;
}

input,
button,
select,
textarea {
  border-radius: 0px !important;
}

#wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

/*  Header
==================================== */

header .navbar {
  min-height: 62px;
  padding: 0;
  margin-bottom: 0;
  background: $white-0;
}

header .navbar-default {
  width: 100%;
  border: none;
  background: $white-0;
}

.navbar-brand {
  display: block;
  width: 130px;
  margin-top: 10px;
  padding: 0 0 0 15px;
}

.navbar-brand img {
  width: 100%;
}

.navbar-default .navbar-toggle {
  border-color: #ddd;
  margin-top: 10px;
}

/** 右侧导航 **/
header .nav li a:hover,
header .nav li a:focus,
header .nav li.active a,
header .nav li.active a:hover,
header .nav li a.dropdown-toggle:hover,
header .nav li a.dropdown-toggle:focus,
header .nav li.active ul.dropdown-menu li a:hover,
header .nav li.active ul.dropdown-menu li.active a {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

header .navbar-nav > .open > a,
header .navbar-nav > .open > a:hover,
header .navbar-nav > .open > a:focus {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

header .navbar-collapse ul.navbar-nav {
  float: right;
  margin-right: 0;
  @media (max-width: 767px) {
    width: 100%;
  }
}

header .navbar-nav > li {
  padding-bottom: 12px;
  padding-top: 12px;
  padding: 0 !important;
}

header .navbar-nav > li > a {
  margin-left: 2px;
  line-height: 30px;
  font-size: 13px;
  font-weight: 600;
  // text-transform: uppercase;
  border: 1px solid transparent !important;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: $white-0;
  background: $primary-color;
  border-radius: 0;
  @media (max-width: 767px) {
    background: none;
    font-weight: 700;
    color: $primary-color;
  }
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #1a1a1a;
  background-color: transparent;
}

header .nav .caret {
  border-bottom-color: #29448e;
  border-top-color: #29448e;
}

.navbar-nav li .dropdown-menu {
  z-index: 2000;
  margin-top: 0px;
}

.dropdown-menu:before {
  display: inline-block;
  border-right: none;
  border-bottom: none;
  border-left: none;
  border-bottom-color: none;
  content: none;
}

.dropdown-menu {
  box-shadow: none;
  border-radius: 0;
  border: none;
}

.dropdown-menu li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.dropdown-menu li a {
  line-height: 28px;
  padding: 3px 12px;
  font-size: 12px;
  border: none;
  font-weight: 500;
  // text-transform: uppercase;
}

.dropdown-menu li a:hover {
  color: $white-0;
  background: $primary-color;
}

/** NAV ICON **/
@media (max-width: 767px) {
  .navbar-default .navbar-toggle .icon-bar {
    background-color: $gray-1;
    border-radius: 0;
  }
  .navbar-default .navbar-toggle:hover,
  .navbar-default .navbar-toggle:focus {
    background-color: rgba(221, 221, 221, 0);
  }

  .navbar-default .navbar-collapse,
  .navbar-default .navbar-form {
    border-color: rgba(255, 255, 255, 0.58);
    margin-top: 15px;
  }
}

/** index 内容 **/
@mixin bgImg($cover: cover) {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: $cover;
  overflow: hidden;
}

.g-btn {
  padding: 10px 15px;
  color: $white-0;
  font-size: 1.6rem;
  background-color: $green-1;
  border-color: $green-1;
  border-radius: $radius4;
}

.g-btn:hover {
  color: $white-0;
  background-color: #218838;
  border-color: #1e7e34;
}

#wrapper section {
  width: 100%;
}

.main-banner {
  display: flex;
  align-items: center;
  height: calc(100vh - 62px);
  @include bgImg();
  background-image: linear-gradient(
      rgba(0, 128, 128, 0.5),
      rgba(255, 140, 0, 0.3)
    ),
    url(../images/black-modern-minimalistic-desk.jpg);
  background-attachment: fixed;
}

.banner-content {
  max-width: 60%;
  padding-left: 60px;
  margin-top: -60px;
}

.banner-content h1 {
  color: $gdoxa-color;
}

.banner-content p {
  margin-bottom: 30px;
  font-size: 1.6rem;
  color: $white-0;
}

.home-introduction {
  padding: 50px 60px;
  background-color: $white-1;
}

.introduction-content {
  display: flex;
  align-items: center;
}

.introduction-content h1 {
  flex: 0 0 260px;
  color: $black-3;
}

.introduction-content p {
  padding-left: 80px;
  color: $black-3;
  font-size: 1.8rem;
  text-align: justify;
  word-wrap: break-word;
}

.home-services {
  background-color: $white-1;
}

.services-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  @include bgImg();
  background-attachment: fixed;
}

.services-software {
  background-image: linear-gradient(rgba(0, 0, 255, 0.5), rgba(50, 50, 50, 0.5)),
    url(../images/business-woman-working-on-laptop-min.jpg);
}

.services-office {
  background-image: linear-gradient(
      rgba(255, 127, 80, 0.5),
      rgba(255, 127, 80, 0.5)
    ),
    url(../images/business-woman-working-on-laptop-min.jpg);
}

.services-project {
  background-image: linear-gradient(
      rgba(210, 105, 30, 0.5),
      rgba(50, 50, 50, 0.5)
    ),
    url(../images/business-woman-working-on-laptop-min.jpg);
}

.services-title h1 {
  color: $white-1;
}

.services-title p {
  margin-top: 10px;
  color: $white-1;
  font-size: 1.6rem;
}

.home-customer {
  padding: 80px 60px;
  background-color: $white-0;
}

.home-customer h1 {
  text-align: center;
}

.home-customer ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 60px;
}

.home-customer ul li {
  width: 20%;
  margin-bottom: 30px;
  padding: 0 10px;
  box-sizing: border-box;
}

.home-customer ul li div {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  text-align: center;
  border: 1px solid #d9d9d9;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

.home-customer ul li div:hover {
  border-color: $primary-color;
  box-shadow: 0 2px 11px rgba(255, 87, 34, 0.5);
}

.home-customer ul li div p {
  width: 100%;
  transition: all 0.2s ease-in-out;
  img {
    max-width: 120px;
    max-height: 50px;
  }
}

.home-contact {
  @include bgImg();
  background-image: linear-gradient(
      rgba(210, 105, 30, 0.5),
      rgba(50, 50, 50, 0.5)
    ),
    url(../images/girl-writing.jpg);
  background-attachment: fixed;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20%;
}

.contact-content h1 {
  color: $white-0;
}

footer {
  width: 100%;
  padding: 50px 60px;
  background-color: $black-4;
}

footer ul {
  display: flex;
  justify-content: center;
}

footer ul li.active a {
  color: $white-0;
}

footer ul li a {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
  cursor: pointer;
}

footer ul li a:hover {
  color: rgba(255, 255, 255, 0.75);
}

footer .bottom p {
  color: $black-2;
  text-align: center;
}
